package com.huawei.appmarket.service.store.awk.card;

import android.content.Context;
import android.view.View;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.appgallery.foundation.ui.framework.fragment.multitabs.vertival.VerticalMultiTabsFragment;
import o.azb;
import o.cgz;
import o.eib;
import o.ewm.d;

public class NarrowAppListCard extends BaseApplistCard {
    public NarrowAppListCard(Context context) {
        super(context);
    }

    public cgz ˏ(View view) {
        super.ˏ(view);
        return this;
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
    }

    protected int ˎ() {
        int ˋˊ = eib.ˋˊ();
        int ॱ = azb.ॱ(this.ʼॱ) - VerticalMultiTabsFragment.ᐝ.ॱ(this.ʼॱ);
        if (ˋˊ == 0) {
            ˋˊ = 1;
        }
        return ॱ / ˋˊ;
    }

    protected int ʻ() {
        return this.ʼॱ.getResources().getDimensionPixelSize(d.ˊʼ);
    }

    protected int ᐝ() {
        return azb.ˏ(this.ʼॱ);
    }
}
